package com.coda.service.impl;

import com.coda.entity.Statistics;
import com.coda.mapper.StatisticsMapper;
import com.coda.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    private StatisticsMapper statisticsMapper;

    /**
     * 统计各商品数量
     * @return
     */
    @Override
    public List<Statistics> getStoreInvent() {
        List<Statistics> statisticsList = statisticsMapper.getStoreInvent();
        return statisticsList;
    }
}
